package com.yuyou.train.lesson.vo.req;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;


/**
 * @author 
 */
public class ReqRuleAddOrUpdate  {

	
	@ApiModelProperty(value = "ID（为空则新增，不为空则编辑）", required = false)
    private String id;
	
	@ApiModelProperty(value = "名字", required = true)
	@NotNull(message="name不能为空")
	@Length(max=20,message="名字(name)长度过长") 
    private String name;
	
	@ApiModelProperty(value = "资源类别：01：视频，02：音频，03：文件，04：试卷，05：作业（自评作业），06：作业（提交型作业），07：感想", required = true)
	@NotNull(message="resourceType不能为空")
	private String resourceType;

	@ApiModelProperty(value = "是否启用：0：否，1：是", required = true)
	@NotNull(message="isUse不能为空")
	private String isUse;

	@ApiModelProperty(value = "描述", required = false)
	@Length(max=400,message="描述(describes)长度过长") 
    private String describes;

	@ApiModelProperty(value = "多媒体观看时长", required = false)
	@Min(value=0,message="多媒体观看时长(duration)必须大于等于0")
	@Max(value=100,message="多媒体观看时长(duration)必须小于等于100")	
    private Integer duration;

	@ApiModelProperty(value = "触发动作", required = false)
    private String needAction;

	@ApiModelProperty(value = "触发评语", required = false)
    private String needComment;

	@ApiModelProperty(value = "触发评分", required = false)
	@Min(value=0,message="触发评分(needScore)必须大于等于0")
	@Max(value=100,message="触发评分(needScore)必须小于等于100")	
    private Integer needScore;
	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getResourceType() {
		return resourceType;
	}


	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}


	public String getIsUse() {
		return isUse;
	}


	public void setIsUse(String isUse) {
		this.isUse = isUse;
	}


	public String getDescribes() {
		return describes;
	}


	public void setDescribes(String describes) {
		this.describes = describes;
	}


	public Integer getDuration() {
		return duration;
	}


	public void setDuration(Integer duration) {
		this.duration = duration;
	}


	public String getNeedAction() {
		return needAction;
	}


	public void setNeedAction(String needAction) {
		this.needAction = needAction;
	}


	public String getNeedComment() {
		return needComment;
	}


	public void setNeedComment(String needComment) {
		this.needComment = needComment;
	}





	public Integer getNeedScore() {
		return needScore;
	}


	public void setNeedScore(Integer needScore) {
		this.needScore = needScore;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}
    
}